$(document).ready(function(){
    $('.deal_item').draggable({distance: 50, helper: 'clone'});
    $('#mycart').droppable({
        activeClass: "dropping",
        drop: function(event, ui) {
            var ui_id = ui.draggable.attr('id');
            var deal_id = ui_id.substring(0, ui_id.indexOf('_'));
            add_to_cart(deal_id);
        }
    });
});
